<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<jsp:include page="head.jsp"/>
<%--中间内容 用户主页--%>
<div class="fly-home fly-panel" style="margin-left: 90px;margin-right: 90px;">
    <img src="${pageContext.request.contextPath}${uhome.uImage}">
    <i class="iconfont icon-renzheng" title="图形图像处理交流网站"></i>
    <h1>
        ${uhome.uNickName}
        <%--<i class="iconfont icon-nan"></i>
        <i class="iconfont icon-nv"></i>--%>

    </h1>

    <p class="fly-home-info">
        <i class="iconfont icon-shijian"></i><span><spring:eval expression="uhome.uCreateTime"/> 注册</span>
    </p>

</div>

<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title">${uhome.uNickName} 最近的发布（仅显示前十条数据）</h3>
                <ul class="jie-row">
                    <c:if test="${bhome.size()<=10}">
                        <c:forEach items="${bhome}" var="bhome">
                            <li>
                                <a href="${pageContext.request.contextPath}/blog/content.do?bId=${bhome.bId}" class="jie-title"> ${bhome.bTitle}</a>
                                <i><spring:eval expression="bhome.bCreateTime"/></i>
                                <em class="layui-hide-xs">评论（${bhome.bCom==null?0:bhome.bCom}）</em>
                            </li>
                        </c:forEach>
                    </c:if>
                    <c:if test="${bhome.size()==null}">
                        <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
                            <i style="font-size:14px;">没有发表内容</i>
                        </div>
                    </c:if>

                </ul>
            </div>
        </div>

        <div class="layui-col-md6 fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title">${uhome.uNickName}最近的文件（仅显示前十条数据）</h3>
                <ul class="jie-row">
                    <c:if test="${bhome.size()<=10}">
                        <c:forEach items="${fhome}" var="fhome">
                            <li>
                                <a href="${pageContext.request.contextPath}/fileInfo/to_fileInfo.do?fId=${fhome.fId}" class="jie-title"> ${fhome.fName}</a>
                                <i><spring:eval expression="fhome.fCreateTime"/></i>
                            </li>
                        </c:forEach>
                    </c:if>
                    <c:if test="${fhome.size()==0}">
                        <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
                            <i style="font-size:14px;">没有上传文件</i>
                        </div>
                    </c:if>
                </ul>
            </div>
        </div>
    </div>
</div>
<jsp:include page="bottom.jsp"/>
